home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 May: Tool Chest / Developer CD Series May 1996 (Tool Chest) (Apple Computer) (1996).iso / Sample Code / SCSI Samples 1.0 / SCSI Inquiry Samples ƒ / SCSI Inquiry (Simple) 06⁄07 ƒ / Makefile next >
Encoding:
Makefile  |  1994-06-16  |  2.2 KB  |  90 lines  |  [TEXT/MPS ]

  1. #
  2. # SCSI Inquiry Sample
  3. # Copyright © 1994, Apple Computer Inc. All rights reserved.
  4. #
  5. # This Makefile builds the SCSI Inquiry sample as a "fat" binary
  6. # that runs native on 68000 and Power PC systems. It requires the MPW
  7. # 3.3 distribution from the Macintosh on Risc SDK
  8. #
  9. Src                    =    ":Src:"
  10. Obj                    =    ":Obj:"
  11. PPCObjects            =                            ∂
  12.         {Obj}SCSIInquiry.c.po
  13.         
  14. M68Objects            =                            ∂
  15.         {Obj}SCSIInquiry.c.mo
  16.  
  17. #
  18. # Directory dependencies. "Everything in the {Obj} directory depends on
  19. # something in the {Src} directory." Note: you can throw away the contents
  20. # of the {Obj} directory if you want to rebuild from scratch.
  21. #
  22. {Obj}        ƒ    {Src}
  23.  
  24. #
  25. # Compiler dependencies -- common to all compilations. The idea here is that all
  26. # sources are stored in the {Src} subdirectory, and all objects and code resources
  27. # output by the linker or Rez are stored in the {Obj} subdirectory. Note that
  28. # we define MPW to simplify portability: this sample compiles under Think C, MPW
  29. # 3.3, and Macintosh on Risc (FastTrack). It has not been tested on MetroWerks.
  30. #
  31. .c.po ƒ .c                                    ∂
  32.         {Src}SCSIInquiry.h
  33.     PPCC -sym on -appleext on -w off -d MPW    ∂
  34.         -o {TargDir}{Default}.c.po            ∂
  35.         {DepDir}{Default}.c
  36.  
  37. .c.mo ƒ .c                                    ∂
  38.         {Src}SCSIInquiry.h
  39.     C {COptions} -d MPW                        ∂
  40.         -o {TargDir}{Default}.c.mo            ∂
  41.         {DepDir}{Default}.c
  42.  
  43. #
  44. # Build the application.
  45. #
  46. "SCSIInquiry" ƒƒ                            ∂
  47.         MakeFile                            ∂
  48.         {Src}SCSIInquiry.h
  49.     Rez                                        ∂
  50.         {Src}SCSIInquiry.r                    ∂
  51.         -append                                ∂
  52.         -t APPL                                ∂
  53.         -i "{CIncludes}"                    ∂
  54.         -i "{RIncludes}"                    ∂
  55.         -d __powerc=1                        ∂
  56.         -o {targ}
  57.  
  58. "SCSIInquiry" ƒƒ                            ∂
  59.         MakeFile                            ∂
  60.         {M68Objects}
  61.     Link                                    ∂
  62.         -t APPL                                ∂
  63.         {M68Objects}                        ∂
  64.         "{Libraries}"Runtime.o                ∂
  65.         "{Libraries}"Interface.o            ∂
  66.         -o {targ}
  67.  
  68. "SCSIInquiry" ƒƒ                            ∂
  69.         "{Obj}SCSIInquiry.xcoff"
  70.     MakePEF                                    ∂
  71.         {deps}                                ∂
  72.         -l InterfaceLib.xcoff=InterfaceLib    ∂
  73.         -l StdCLib.xcoff=StdCLib            ∂
  74.         -l MathLib.xcoff=MathLib            ∂
  75.         -o {targ}                            ∂
  76.         -ft APPL -fc '????'
  77.  
  78. "{Obj}SCSIInquiry.xcoff" ƒ                    ∂
  79.         {PPCObjects}
  80.     PPCLink                                    ∂
  81.         {PPCObjects}                        ∂
  82.         "{PPCLibraries}"StdCLib.xcoff        ∂
  83.         "{PPCLibraries}"MathLib.xcoff        ∂
  84.         "{PPCLibraries}"InterfaceLib.xcoff    ∂
  85.         "{PPCLibraries}"PPCCRuntime.o        ∂
  86.         -main main ∂
  87.         -o {targ}
  88.  
  89.  
  90.